#ifndef _XIECC_RTMP_H_
#define _XIECC_RTMP_H_
#include <stdint.h>
#include "rtmp.h"
#include "ringfifo.h"


#ifdef __cplusplus
extern "C"{
#endif
FILE* open_file(char *path);
void H264_save(FILE* fp, uint8_t *data, int size);


void RTMP264_Close(void);
int rtmp_sender_alloc(const char *url); 
int rtmp_sender_start_publish(void);
int RTMP264_Send(int (*read_buffer)(struct ringbuf *getinfo));
//int RTMP264_Send(int i);

#ifdef __cplusplus
}
#endif
#endif
